/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ControlEscolar.Validations;

import com.ControlEscolar.Beans.Professor;
import com.ControlEscolar.DAOs.DAOException;
import com.ControlEscolar.DAOs.ProfessorDAO;

/**
 *
 * @author Rodna Marrufo
 */
public class ValidationProfessor extends BasicValidation{
    ProfessorDAO professorDAO=new ProfessorDAO();

    public boolean isExistProfessor(String professorName, String professorTel) throws DAOException{
        Professor searchProfessor=professorDAO.queryProfessor(professorName, professorTel);
        return isFound(searchProfessor);
    }

}
